package com.smart.fourteen.hibernate.spring;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/fourteen/hibernate/spring/applicationContext-spring-hibernate.xml");
        SessionFactory f = (SessionFactory)ac.getBean("sessionFactory");
        System.out.println(f);
    }
}
